package com.ruoyi.app.controller

import com.ruoyi.app.common.Data
import com.ruoyi.app.service.AliApiService
import com.ruoyi.app.service.SegmentCommonImageDto
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("api/api")
@Api(tags = ["阿里云相关接口"])
class AliApiController {

    @Autowired
    private lateinit var aliApiService: AliApiService

    @PostMapping("addSegmentCommonImage")
    @ApiOperation("通用分割")
    fun addSegmentCommonImage(segmentCommonImageDto: SegmentCommonImageDto): Data<String> =
        aliApiService.addSegmentCommonImage(segmentCommonImageDto)

}